package com.king.modules.system.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.king.common.annotation.MetaData;
import com.king.framework.base.domain.YyBaseEntity;

/**
 * 附件 Entity层
 * @author liusheng
 */
@TableName("sys_attachment")
public class AttachmentEntity extends YyBaseEntity {

	@MetaData(value = "业务类型")
	private String btype;

	@MetaData(value = "业务ID")
	private String bid;

	@MetaData(value = "分类")
	private String bclass;

	@MetaData(value = "文件路径")
	private String filepath;

	@MetaData(value = "压缩图片路径")
	private String compresspath;

	@MetaData(value = "文件类型")
	private String filetype;

	@MetaData(value = "文件名称")
	private String filename;

	@MetaData(value = "保存的文件名称")
	private String savename;

	@MetaData(value = "文件大小")
	private String filesize;

	@MetaData(value = "上传时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	private Date uptime;

	public static AttachmentEntity newInstance() {
	    AttachmentEntity instance = new AttachmentEntity();
	    return instance;
	}

	public String getBtype() {
		return btype;
	}

	public void setBtype(String btype) {
		this.btype = btype;
	}

	public String getBid() {
		return bid;
	}

	public void setBid(String bid) {
		this.bid = bid;
	}

	public String getBclass() {
		return bclass;
	}

	public void setBclass(String bclass) {
		this.bclass = bclass;
	}

	public String getFilepath() {
		return filepath;
	}

	public void setFilepath(String filepath) {
		this.filepath = filepath;
	}

	public String getCompresspath() {
		return compresspath;
	}

	public void setCompresspath(String compresspath) {
		this.compresspath = compresspath;
	}

	public String getFiletype() {
		return filetype;
	}

	public void setFiletype(String filetype) {
		this.filetype = filetype;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getSavename() {
		return savename;
	}

	public void setSavename(String savename) {
		this.savename = savename;
	}

	public String getFilesize() {
		return filesize;
	}

	public void setFilesize(String filesize) {
		this.filesize = filesize;
	}

	public Date getUptime() {
		return uptime;
	}

	public void setUptime(Date uptime) {
		this.uptime = uptime;
	}


}
